package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;

import java.util.Date;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface LoansAttestationService {

    LoansAttestation create(LoansAttestation item);

    int delete(Integer id);

    int update(LoansAttestation item);

    LoansAttestation get(Integer id);

    PageInfo<LoansAttestation> getListWithPaging(Integer pageNum, Integer pageSize,
                                                 String sortItem, String sortOrder, LoansAttestation item);

    List<LoansAttestation> getList(Integer pageNum, Integer pageSize,
                                   String sortItem, String sortOrder, LoansAttestation item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, LoansAttestation item);


    int updateLpans(Integer userId, Double amount, Date date,Integer user);

    LoansAttestation getByUser(Integer userId);
}
